<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/top.css" />
<title>计划查询</title>
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/css/popcalendar.css" />
<script src="<%=basePath%>/js/popcalendar.js"></script>
<script src="<%=basePath%>/js/function.js"></script>
<SCRIPT src="<%=basePath%>/js/My97DatePicker/WdatePicker.js"></SCRIPT>
<script>	
		function CheckForm()
		{
			if(!checkIsDate(document.Form1.txtBeginDate.value))
			{
				alert("开始日期不正确！");
				document.Form1.txtBeginDate.focus();
				return (false);
			}
			   
			if(!checkIsDate(document.Form1.txtEndDate.value))
			{
				alert("结束日期不正确！");
				document.Form1.txtEndDate.focus();
				return (false);
			}			
			return true;
		}
		
		                   
		function open_workplan(plan_id)
		{
			URL="../read_workplan.aspx?plan_id="+plan_id;
			myleft=(screen.availWidth-500)/2;
			window.open(URL,"read_notify","height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
		}
		</script>
</HEAD>
<body topMargin="5">
<form name="Form1" method="post" action="PlanServlet" id="Form1">
<div><input type="hidden" name="plan" id="__VIEWSTATE"
	value="query" /></div>

<table border="0" width="100%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img align="absMiddle"
			src="<%=basePath%>/img/office/infofind.gif"><span class="big3">
		工作计划查询 </span></td>
	</tr>
</table>
<div id="pnlMain">

<TABLE class="small" cellSpacing="1" cellPadding="2" width="500"
	bgcolor="#000000" align="center" border="0">
	<TR>
		<TD class="TableData" noWrap colspan="2"><img align="absMiddle"
			src="<%=basePath%>/img/office/notify_new.gif"><span
			class="big3"> 工作计划查询</TD>

	</TR>
	<TR>
		<TD class="TableData" noWrap>计划名称：</TD>
		<TD class="TableData"><input name="txtName" type="text"
			id="txtName" class="BigInput" maxlength="200" size="36" /></TD>
	</TR>

	<TR>
		<TD class="TableData" noWrap>日期范围：</TD>
		<TD class="TableData"><input name="txtBeginDate" type="text"
			id="txtBeginDate" class="BigInput"
			ondblclick="document.Form1.txtBeginDate.value='';"
			onclick="WdatePicker()" maxlength="10" size="12" /> 至 <input
			name="txtEndDate" type="text" id="txtEndDate" class="BigInput"
			ondblclick="document.Form1.txtEndDate.value='';"
			onclick="WdatePicker()" maxlength="10" size="12" /></TD>
	</TR>
	<TR>
		<TD class="TableData" noWrap>计划类型：</TD>
		<TD class="TableData"><select name="txtType" id="ddlTypeId"
			class="BigSelect">

			<option value="工作计划" selected>工作计划</option>
			<option value="项目计划">项目计划</option>
			<option value="经营计划">经营计划</option>
			<option value="生产计划">生产计划</option>
			<option value="销售计划">销售计划</option>
			<option value="采购计划">采购计划</option>

		</select></TD>
	</TR>


	<TR>
		<TD class="TableData" noWrap>备注：</TD>
		<TD class="TableData"><input name="txtRemark" type="text"
			id="txtRemark" class="BigInput" maxlength="200" size="40" /></TD>
	</TR>
	<div id="pnlField"></div>
	<TR class="TableControl" align="center">
		<TD noWrap colSpan="2"><INPUT class="BigButton"
			onclick="return CheckForm();" type="submit" value="查询" />&nbsp;&nbsp;
		<INPUT class="BigButton" onclick="location='work_plan.aspx?date=1';"
			type="button" value="返回" /></TD>
	</TR>
</TABLE>

</div>


<div><input type="hidden" name="__EVENTVALIDATION"
	id="__EVENTVALIDATION" value= /></div>
</form>
</body>
</HTML>
